package com.bootdo.common.utils;


import org.apache.commons.collections4.CollectionUtils;

import java.util.Collection;
import java.util.Map;

/**
 * @program: bootdo
 * @description:
 * @author: wfy
 * @create: 2018-09-14 10:56
 */
public class Assert {
    private Assert() {}

    public static void notNull(Object obj, String message) {
        if (obj == null) {
            throw new RuntimeException(message);
        }
    }

    public static void mapNotNull(Map m, String message) {
        if (m == null || m.size() == 0) {
            throw new RuntimeException(message);
        }
    }

}
